package org.garbagecan.xstreamstudy.converter;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class Test {
	public static void main(String[] args) {
		Person person = new Person();
		person.setName("Guilherme");

		XStream xStream = new XStream(new DomDriver());
		xStream.registerConverter(new PersonConverter());
		xStream.alias("person", Person.class);
		
		System.out.println(xStream.toXML(person));
	}
}
